﻿package Component {
	
	import flash.display.MovieClip;
	import Map.Block;
	import flash.geom.ColorTransform;
	
	public class Avatar extends Block {
		
		public function Avatar() {
			// constructor code
		}
		
		public function colorize(id:uint) {
			var c:ColorTransform = new ColorTransform();
			switch(id) {
				case 0 :
				// green
					c.color = 0x66FF33;
					break;
				case 1 :
				//red
					c.color = 0xFF0033;
					break;
				case 2 :
				// blue
					c.color = 0x00CCFF;
					break;
				case 3 :
				// light blue
					c.color = 0xFF00FF;
					break;
			}
			color.transform.colorTransform = c;
		}
	}
	
}
